package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 会员业务类型 - 数据来源为Paas平台会员设置-会员业务设置中的会员类型
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-03
 */
@Entity
@Table(schema = "public", name = "ms_mc_member_business_type", indexes = {@Index(name = "ms_mc_member_business_type_rel_type_idx", columnList = "relType")})
public class MemberBusinessTypeDO implements Serializable {
    private static final long serialVersionUID = 7924856203850866668L;

    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="member_business_type_seq")
    @SequenceGenerator(sequenceName="ms_mc_member_business_type_seq", name="member_business_type_seq",allocationSize = 1)
    private Long id;

    /**
     * 归属类型，定义在 MemberRelationTypeEnum 中， 0-平台，1-普通会员
     */
    @Column
    private Integer relType;

    /**
     * 业务类型名称
     */
    @Column(columnDefinition = "varchar(50)", nullable = false)
    private String businessTypeName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getRelType() {
        return relType;
    }

    public void setRelType(Integer relType) {
        this.relType = relType;
    }

    public String getBusinessTypeName() {
        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {
        this.businessTypeName = businessTypeName;
    }
}
